package com.net.model;

import java.util.Arrays;
import java.util.HashMap;
import java.util.Map;

public class UserFlow {
	private Double[] flowPerMinute;
	private int cursor;
	private Map<String, Double> flowPerType;
	
	

	public UserFlow() {
		super();
		Double[] d = new Double[30];
		for(int i = 0; i < 30; i ++){
			d[i] = 0.0;
		}
		this.flowPerMinute = d;
		this.cursor = 0;
		this.flowPerType = new HashMap<String, Double>();
	}


	public Double[] getFlowPerMinute() {
		return flowPerMinute;
	}

	public void setFlowPerMinute(Double[] flowPerMinute) {
		this.flowPerMinute = flowPerMinute;
	}

	public int getCursor() {
		return cursor;
	}

	public void setCursor(int cursor) {
		this.cursor = cursor;
	}

	public Map<String, Double> getFlowPerType() {
		return flowPerType;
	}

	public void setFlowPerType(Map<String, Double> flowPerType) {
		this.flowPerType = flowPerType;
	}

	@Override
	public String toString() {
		return "UserFlow [flowPerMinute=" + Arrays.toString(flowPerMinute) + ", cursor=" + cursor + ", flowPerType="
				+ flowPerType + "]";
	}

}
